<template>
  <h1>事件绑定指令</h1>
  <button @click="f()">按钮1</button>
  <button v-on:click="f()">按钮2</button>
  <h3>回车按下事件</h3>
  <input type="text" @keydown.enter="ent()">
</template>

<script setup>
  const f =()=>{
    alert('点击了');
  };
  const ent =()=>{
    alert('靴子信息');
  };
</script>


<style scoped>

</style>